x86/HVM: fix setting mem access to default
authorJan Beulich <JBeulich@suse.com>
Wed, 2 Apr 2014 08:09:33 +0000 (09:09 +0100)
committerTim Deegan <tim@xen.org>
Thu, 3 Apr 2014 09:48:48 +0000 (10:48 +0100)
commitca0f21841ddc4b2e2f4e4a74e2e39b70bd6b0aff
tree6a11da6aa2bb9cb8d66b33a98657ed739bf03854
parente8b87b57b4dfce2fd72b0e3d8319bf4e012f962c
x86/HVM: fix setting mem access to default

commit 3b0bcb89 ("x86/mm/p2m: Move p2m code in HVMOP_[gs]et_mem_access
into p2m.c") introduced an off-by-one mistake forcing an input of
HVMMEM_access_default to always fail. Since related, also eliminate the
inefficient setup of an on-stack array for each function invocation.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m.c